package com.ferry.lock.exception;

/**
 * Created by daiyong
 */
public abstract class AbstractLockException extends RuntimeException{

	protected ErrorCode errorCode;

	public AbstractLockException(ErrorCode errorCode) {
		this(errorCode, errorCode.getErrorMsg(), null);
	}

	public AbstractLockException(ErrorCode errorCode, String errorMsg) {
		this(errorCode, errorMsg, null);
	}

	public AbstractLockException(ErrorCode errorCode, String errorMsg, Throwable cause) {
		super(errorMsg, cause);
		this.errorCode = errorCode;
	}

}
